﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>成都九方报价网站不干胶</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link href="/static/static1/css/a2f29159061e4b22a0106534d418b192.css" rel="stylesheet"/>

    <script src="/static/static1/js/9cebb44ef0bb4d4c8ce96b235d192fc9.js"></script>

    <link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link rel="stylesheet" href="/static/static1/css/font-awesome.min_3.css">
    <link rel="stylesheet" href="/static/static1/css/ionicons.min_3.css">
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="/static/static1/js/html5shiv.min_3.js"></script>
    <script src="/static/static1/js/respond.min_3.js"></script>
    <![endif]-->
    <style>         .main-header .navbar {
        background-color: #0556a2 !important;
    }

    .main-header .logo {
        background-color: #0556a2 !important;
    }

    .skin-green .wrapper, .skin-green .main-sidebar, .skin-green .left-side {
        background-color: #fff !important;
    }

    .skin-green .sidebar a {
        color: #1a2327;
    }
    .form-control {
        border-radius: 0;
        box-shadow: none;
        border-color: #1f63ea;
        border-radius: 10px;
    }
    </style>
</head>
<body class="hold-transition sidebar-mini">
<div class="wrapper">
    <header class="main-header">

        <!-- Logo -->
        <a href="#" class="logo">
            <!-- mini logo for sidebar mini 50x50 pixels -->
    <span class="logo-mini">
        <b>报价</b>
    </span>
            <!-- logo for regular state and mobile devices -->
    <span class="logo-lg">
        <img src="/static/static1/images/jfyw.png" width="200px" height="40px">
    </span>
        </a>
        <!-- Header Navbar: style can be found in header.less -->
        <nav class="navbar navbar-static-top">
            <!-- Sidebar toggle button-->
            <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                &nbsp;产品类型
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </a>
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                        data-target="#navbar-collapse">
                    <i class="fa fa-bars"></i>
                </button>
            </div>
            <div class="collapse navbar-collapse pull-left" id="navbar-collapse">
                <ul class="nav navbar-nav">

                </ul>
            </div>
            <!-- /.navbar-collapse -->
            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <!-- User Account: style can be found in dropdown.less -->
                    <li class="dropdown user user-menu">
                       <!--<a href="javascript:;" class="dropdown-toggle" onclick="logout();">退出登录</a> -->
                    </li>
                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="/static/static1/picture/20180305184444_6163_3.png" class="user-image"
                                 alt="User Image">
                            <span class="hidden-xs">九方印务</span>
                        </a>
                        <ul class="dropdown-menu">
                            <!-- User image -->
                            <li class="user-header">
                                <img src="/static/static1/picture/20180305184444_6163_3.png" class="img-circle"
                                     alt="User Image">
                                <p>
                                    九方印务
                                </p>
                            </li>
                            <!-- Menu Footer-->
                            <li class="user-footer">
                                <div class="pull-right">
                                    <a href="javascript:;" class="btn btn-default btn-flat" onclick="logout();">退出</a>
                                </div>
                            </li>
                        </ul>
                    </li>
                    <!-- Control Sidebar Toggle Button -->

                </ul>

            </div>
        </nav>
        <script>
            function logout() {
                $.ajax({
                    type: "POST",
                    url: "/logout",
                    success: function (data) {
                        location.href = "/login";
                    }
                });
            }

            function goLogin() {
                var returnUrl = window.location.pathname + window.location.search;
                //console.log(returnUrl);
                location.href = "/login?returnUrl=" + returnUrl + "";
            }
        </script>
    </header>
    <aside class="main-sidebar">


        <section class="sidebar">
            <input type="hidden" id="hidSkin" value="skin-green" />
            <ul class="sidebar-menu">
                <li class="treeview" url="/printer/api/mp" productId="1">
                    <a href="/printer/api/bgj">
                        <i class="fa fa-meetup"></i> <span>不干胶</span>
                    <span class="pull-right-container">
                        <small class="label pull-right bg-red"></small>
                    </span>
                    </a>
                </li>
                <li class="treeview" url="/printer/api/mp" productId="2">
                    <a href="/printer/api/mp">
                        <i class="fa fa-book"></i> <span>名片</span>
                    <span class="pull-right-container">
                        <small class="label pull-right bg-red"></small>
                    </span>
                    </a>
                </li>

                <li class="treeview" url="/printer/api/std" productId="2">
                    <a href="/printer/api/std">
                        <i class="fa fa-shopping-bag"></i> <span>手提袋</span>
                    <span class="pull-right-container">
                        <small class="label pull-right bg-red"></small>
                    </span>
                    </a>
                </li>

                <li class="treeview" url="/printer/api/ft" productId="2">
                    <a href="/printer/api/ft">
                        <i class="fa fa-clone"></i> <span>封套</span>
                    <span class="pull-right-container">
                        <small class="label pull-right bg-red"></small>
                    </span>
                    </a>
                </li>

                <li class="treeview" url="/printer/api/xf" productId="2">
                    <a href="/printer/api/xf">
                        <i class="fa fa-envelope-o"></i> <span>信封</span>
                    <span class="pull-right-container">
                        <small class="label pull-right bg-red"></small>
                    </span>
                    </a>
                </li>



                <li class="treeview" url="/printer/api/wtld" productId="2">
                    <a href="/printer/api/wtld">
                        <i class="fa fa-bookmark"></i> <span>无碳联单</span>
                    <span class="pull-right-container">
                        <small class="label pull-right bg-red"></small>
                    </span>
                    </a>
                </li>

                <li class="treeview" url="/printer/api/pvccard" productId="2">
                    <a href="/printer/api/pvccard">
                        <i class="fa fa-credit-card"></i> <span>PVC卡</span>
                    <span class="pull-right-container">
                        <small class="label pull-right bg-red"></small>
                    </span>
                    </a>
                </li>


                <!--<li class="treeview" productId="77">-->
                <!--<a href="?productId=77">-->
                <!--<i class="fa fa-circle-o"></i> <span>单页</span>-->
                <!--<span class="pull-right-container">-->
                <!--<small class="label pull-right bg-red"></small>-->
                <!--<i class="fa fa-angle-left pull-right"></i>-->
                <!--</span>-->
                <!--</a>-->
                <!--<ul class="treeview-menu">-->
                <!--<li url="/JoinSingle/Index" productId="3">-->
                <!--<a href="/JoinSingle/Index?productId=3">-->
                <!--<i class="fa fa-circle-o"></i>-->
                <!--特价单页-->
                <!--</a>-->
                <!--</li>-->
                <!--<li url="/OnlySingle/Index" productId="24">-->
                <!--<a href="/OnlySingle/Index?productId=24">-->
                <!--<i class="fa fa-circle-o"></i>-->
                <!--专版单页-->
                <!--</a>-->
                <!--</li>-->
                <!--</ul>-->
                <!--</li>-->
                <!--<li class="treeview" url="/DigitalSingle/Index" productId="38">-->
                <!--<a href="/DigitalSingle/Index?productId=38">-->
                <!--<i class="fa fa-circle-o"></i> <span>数码单页</span>-->
                <!--<span class="pull-right-container">-->
                <!--<small class="label pull-right bg-red"></small>-->
                <!--</span>-->
                <!--</a>-->
                <!--</li>-->
                <li class="treeview" productId="63">
                    <a href="?productId=63">
                        <i class="fa fa-book"></i> <span>画册</span>
                    <span class="pull-right-container">
                        <small class="label pull-right bg-red"></small>
                            <i class="fa fa-angle-left pull-right"></i>
                    </span>
                    </a>
                    <ul class="treeview-menu">
                        <li url="/printer/api/hc" productId="37">
                            <a href="/printer/api/hc">
                                <i class="fa fa-circle-o"></i>
                                专版画册
                            </a>
                        </li>
                        <li url="/DigitalAlbum/Index" productId="39">
                            <a href="/DigitalAlbum/Index?productId=39">
                                <i class="fa fa-circle-o"></i>
                                数码画册
                            </a>
                        </li>
                    </ul>
                </li>
                <!--<li class="treeview" productId="67">-->
                <!--<a href="/printer/api/pvc">-->
                <!--<i class="fa fa-circle-o"></i> <span>PVC</span>-->
                <!--<span class="pull-right-container">-->
                <!--<small class="label pull-right bg-red"></small>-->
                <!--<i class="fa fa-angle-left pull-right"></i>-->
                <!--</span>-->
                <!--</a>-->
                <!--<ul class="treeview-menu">-->
                <!--<li url="/printer/api/pvc" productId="23">-->
                <!--<a href="/printer/api/pvc">-->
                <!--<i class="fa fa-circle-o"></i>-->
                <!--PVC标准卡-->
                <!--</a>-->
                <!--</li>-->
                <!--</ul>-->
                <!--</li>-->
            </ul>
        </section>

        <script type="text/javascript">
            $(function () {
                var url = window.location.pathname;
                var productId = GetQueryString("productId");

                var menuLi = $("li");
                $.each(menuLi,
                        function (i, item) {
                            if ($(item).attr("url") === url) {
                            }
                            if ($(item).attr("productId") === productId) {
                                //console.log(productId);
                                $(item).parent().parent().parent().parent().addClass("active");
                                $(item).parent().parent().parent().addClass("active");
                                $(item).parent().parent().addClass("active");
                                $(item).addClass("active");
                            }
                        });
            });
        </script>
    </aside>
    <div class="content-wrapper angular-animation-container">
        <div class="shuffle-animation">

            <!-- Main content -->
            <section class="content">
                <!-- SELECT2 EXAMPLE -->
                <div class="box box-primary">
                    <form id="calcForm" class="easyui-form" method="post" data-options="novalidate:true">
                        <input type="hidden" id="hidProductCode" name="ProductCode"
                               value="C821C87A-EA82-45A3-8052-6E6C358FE1C8"/>
                        <input type="hidden" id="hidPlanBasicCode" name="PlanBasicCode"/>
                        <input type="hidden" id="hidPlanCraftCode" name="PlanCraftCode"
                               value="0d50869f-3900-49a3-94e9-fb1faad191ea"/>
                        <div class="box-header with-border">
                            <h3 class="box-title">不干胶</h3>
                        </div>
                        <!-- /.box-header -->
                        <div class="box-body">
                            <div class="row">
                                <div class="col-md-5">
                                    <div class="form-group">
                                        <label>选择材料类型</label>
                                        <div class="form-group">
                                            @for(var i=0;i<type.~size;i++){
                                            @var t = type[i];
                                            @if(i == 0){
                                            <label>
                                                <input type="radio" class="icheck radioPaper" checked="checked"
                                                       value="${t.id!}" name="radioPaper"> ${t.name!}
                                            </label>
                                            @}else{
                                            <label>
                                                <input type="radio" class="icheck radioPaper" value="${t.id!}"
                                                       name="radioPaper"> ${t.name!}
                                            </label>
                                            @}

                                            @}
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label>选择材料</label>
                                        <div class="form-group">
                                            <select class="form-control select2" name="Paper" id="selPaper"
                                                    style="width: 100%;">
                                                @for(t in type){
                                                <option value="${t.id!}">${t.name!}</option>
                                                @}
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label>
                                            尺寸（毫米/mm）
                                        </label>
                                        <div class="row" id="trCustom">
                                            <div class="col-xs-5">
                                                <input type="text" class="form-control" placeholder="长边"
                                                       name="LongSideLength" id="txtLongSideLength">
                                            </div>
                                            <div class="col-xs-1">
                                                ×
                                            </div>
                                            <div class="col-xs-5">
                                                <input type="text" class="form-control" placeholder="短边"
                                                       name="ShortSideLength" id="txtShortSideLength">
                                            </div>
                                        </div>
                                        <!-- /.row -->
                                    </div>
                                    <!-- /.form-group -->
                                    <div class="form-group">
                                        <label class="text-red">
                                            *尺寸小于名片大小需要强制模切
                                        </label>
                                    </div>
                                    <!-- /.form-group -->
                                    <div class="form-group">
                                        <label>数量</label>
                                        <input type="text" class="form-control" name="Num" id="selNum" placeholder="数量"
                                               value="500">
                                    </div>
                                    <!-- /.form-group -->
                                    <div class="form-group">
                                        <label>选择工艺</label>
                                        <div class="form-group divCraft" id="divCraft">
                                            @for(t in tech){
                                            <label>
                                                <input type="checkbox" class="icheck" name="Crafts" id="${t.id!}"
                                                       value="${t.id!}"/>${t.name!}
                                                &nbsp;&nbsp;
                                            </label>
                                            @}
                                            <!--<label>-->
                                            <!--<input type="checkbox" class="icheck" checked="checked" crafttype="Cut" name="Crafts" id="92" value="7F1D91D3-4FE2-4F5E-BBF5-EF2EDC9BB05E" />直角切成品-->
                                            <!--&nbsp;&nbsp;-->
                                            <!--</label>-->
                                            <!--<label>-->
                                            <!--<input type="checkbox" class="icheck" crafttype="Cut" name="Crafts" id="90" value="D0CD17DD-2C05-4CA2-B73B-111BC84BB45E" />模切-->
                                            <!--&nbsp;&nbsp;-->
                                            <!--</label>-->
                                            <!--<label>-->
                                            <!--<input type="checkbox" class="icheck" crafttype="Membrance" name="Crafts" id="88" value="1348D04B-732A-43FB-9AE5-FED4139A02D3" />覆亮膜-->
                                            <!--&nbsp;&nbsp;-->
                                            <!--</label>-->
                                            <!--<label>-->
                                            <!--<input type="checkbox" class="icheck" crafttype="Membrance" name="Crafts" id="91" value="7415EC7E-BF93-466A-9110-1F2E99771D15" />覆亚膜-->
                                            <!--&nbsp;&nbsp;-->
                                            <!--</label>-->
                                        </div>
                                    </div>
                                    <!-- /.form-group -->
                                </div>
                                <!-- /.col -->
                                <div class="col-md-5">

                                </div>
                                <!-- /.col -->
                            </div>
                            <!-- /.row -->
                            <div class="row" id="rowResult" style="display: none;">
                                <div class="col-md-10">
                                    <div class="form-group">
                                        <label>计算总结</label>
                                        <input type="text" class="form-control" name="txtResult" id="txtResult"
                                               placeholder="计算总结">
                                    </div>
                                    <!-- /.form-group -->
                                </div>
                                <!-- /.col -->
                            </div>
                            <!-- /.row -->
                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer">
                            <button type="button" class="btn btn-danger btn-lg" onclick="submitForm()">计算</button>
                            <button type="button" class="btn btn-white btn-lg" onclick="clearForm()">清空</button>
                            <button type="button" class="btn btn-success btn-lg" onclick="copyResult()" id="btnResult"
                                    style="display: none;">复制计算总结到剪切板
                            </button>
                        </div>
                    </form>
                </div>
                <!-- /.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <div class="box box-success">
                            <!-- 最低价格 -->
                            <!-- /.box-header -->
                            <div class="box-body low">
                                <table id="tbResultLowest" class="table table-bordered table-hover"></table>
                            </div>
                            <!-- /.box-body -->
                            <!-- /最低价格 -->
                            <!-- 固定价格 -->
                            <!-- /.box-header -->
                            <div class="box-body fixed">
                                <table id="tbResultFixed" class="table table-bordered table-hover"></table>
                            </div>
                            <!-- /.box-body -->
                            <!-- /固定价格 -->
                            <!-- 合版价格 -->
                            <!-- /.box-header -->
                            <div class="box-body join">
                                <table id="tbResultJoin" class="table table-bordered table-hover"></table>
                            </div>
                            <!-- /.box-body -->
                            <!-- /合版价格 -->
                            <!-- 专版价格 -->
                            <!-- /.box-header -->
                            <div class="box-body only">
                                <table id="tbResultOnly" class="table table-bordered table-hover"></table>
                            </div>
                            <!-- /.box-body -->
                            <!-- /专版价格 -->
                        </div>
                        <!-- /.box -->
                    </div>
                </div>
                <!-- /.row -->
                <div class="row" id="rowUserPrompts">
                    <div class="col-xs-12">
                        <div class="box box-warning" id="divUserPrompts">

                        </div>
                        <!-- /.box -->
                    </div>
                </div>
                <!-- /.row -->
            </section>
            <!-- /.content -->


        </div>
    </div>


    <footer class="main-footer">
        <div class="pull-right hidden-xs">
            <b>Version</b> 0.1.0.5
        </div>
        <strong>&nbsp;</strong>
    </footer>
</div>
<script>
    $(function () {
        initICheck();
        initSelect2();

        toastr.options = {
            "positionClass": "toast-top-center" //弹出窗的位置
        };
        var skinClass = $("#hidSkin").val();
        $("body").addClass(skinClass);
    });

    function showMobileUserPrompts() {
        var userPrompts = "";
        if (false) {
            userPrompts += "<div class=\"box-body low text-red\">";
            userPrompts += "备注：您的资料正在审核中，审核通过后，即可获得最终报价，感谢支持，请您耐心等待！";
            userPrompts += "</div>";
        } else if (false) {
            userPrompts += "<div class=\"box-body low text-red\">";
            userPrompts += "备注：以上价格仅供参考，完善资料即可获取最新报价";
            userPrompts += "</div>";
            userPrompts += "<div class=\"box-body low text-red text-center\">";
            userPrompts += "<a href=\"http://weixin.shengdaprint.com/Account/RegisterCustomer?companyCode=1&amp;dataSource=\" class=\"btn btn-primary\">完善资料</a>";
            userPrompts += "</div>";
        }
        $("#rowUserPrompts").show();
        $("#divUserPrompts").html(userPrompts);
    }
</script>

<script type="text/javascript">
    $(function () {
        $("#rowUserPrompts").hide();
        $(".fixed").hide();
        $(".join").hide();
        $(".only").hide();
//            $('.radioPaper').on('ifChecked',
//                function(event) {
//                    var planCode = $(this).val();
//                    bindPaper(planCode, "selPaper", true);
//                });
//            necessaryCraft();
//            //默认绑定第一个纸张材料下的尺寸
//            var firstPaper = $(".radioPaper").eq(0);
//            firstPaper.iCheck('check');
        setTextColor();
    });

    function bindPaper(paperCode, elementId) {
        $("#" + elementId + "").html("");
        $.ajax({
            type: "GET",
            url: "/Sticker/GetMaterials",
            data: {"paperCode": paperCode},
            success: function (data) {
                var html = "";
                $.each(data,
                        function (i, item) {
                            html += "<option";
                            html += " value=\"" + item.Code + "\" >" + item.Name + "";
                            html += "&nbsp;&nbsp;";
                            html += "</option>";
                        });
                $("#" + elementId + "").append(html);
            }
        });
    }

    function copyResult() {
        var element = $("#txtResult");
        copyText(element);
    }

    function submitForm() {
        var checkID = [];
        $("input[name='Crafts']:checked").each(function (i) {//把所有被选中的复选框的值存入数组
            checkID[i] = $(this).val();
        });
        var longSideLength = $("#txtLongSideLength").val();
        var shortSideLength = $("#txtShortSideLength").val();
        if (longSideLength <= 0 || shortSideLength <= 0) {
            toastr.error("请输入有效尺寸");
            return false;
        }
        if (longSideLength < 20 || shortSideLength < 20) {
            toastr.error("尺寸太小，请用不干胶标签计算！");
            return false;
        }
        var str = "";
        $("input[name='Craft']:checkbox").each(function (i, item) {
            if (true == $(this).is(':checked')) {
                str += $(this)[0].labels[0].innerText + ",";
            }
        });
        //console.log(str);
        if (((longSideLength > 1000 || shortSideLength > 1000) || (shortSideLength > 700 && longSideLength > 700)
                ) &&
                str.indexOf("模切") > -1) {
            toastr.error("超过模切尺寸范围！");
            return false;
        }
        $("#tbResultLowest").html("");
        $("#tbResultFixed").html("");
        $("#tbResultJoin").html("");
        $("#tbResult").html("");
        $("#tbResultOnly").html("");
        $("#rowUserPrompts").hide();
        $.ajax({
            type: "POST",
            url: "/printer/api/subbgj",
            data: $.param({aa: checkID.toString()}) + '&' + $("#calcForm").serialize(),
//                success: function(res) {
//                    var resultLowest = "";
//                    var resultFixed = "";
//                    var resultJoin = "";
//                    var resultOnly = "";
//                    var data = res.Result;
//                    if (data.Success) {
//                        var onlyList = data.Result.OnlyList;
//                        if (false) {
//                            $("#txtResult").val(data.Result.Desc);
//                            $("#rowResult").show();
//                            $("#btnResult").show();
//                            resultLowest = "<thead class=\"text-green\">";
//                            resultLowest += "<tr>";
//                            resultLowest += "<th>最低价格</th>";
//                            resultLowest += "</tr>";
//                            resultLowest += "</thead>";
//                            resultLowest += "<tbody>";
//                            resultLowest += "<tr>";
//                            resultLowest += "<th class=\"label-success\">" + data.Result.LowestPrice + "元</th>";
//                            resultLowest += "</tr>";
//                            resultLowest += "</tbody>";
//                            $("#tbResultLowest").append(resultLowest);
//                            if (data.Result.FixedPrice !== 0) {
//                                $(".fixed").show();
//                                resultFixed = "<thead>";
//                                resultFixed += "<tr>";
//                                resultFixed += "<th>固定价格总费用</th>";
//                                resultFixed += "</tr>";
//                                resultFixed += "</thead>";
//                                resultFixed += "<tbody>";
//                                resultFixed += "<tr>";
//                                resultFixed += "<td>" + data.Result.FixedPrice + "元</td>";
//                                resultFixed += "</tr>";
//                                resultFixed += "</tbody>";
//                                $("#tbResultFixed").append(resultFixed);
//                            }
//
//                            if (data.Result.JoinPrice != null) {
//                                $(".join").show();
//                                resultJoin = "<thead>";
//                                resultJoin += "<tr>";
//                                resultJoin += "<th>合版总费用</th>";
//                                resultJoin += "<th>印刷费</th>";
//                                resultJoin += "<th>模切费</th>";
//                                resultJoin += "</tr>";
//                                resultJoin += "</thead>";
//                                resultJoin += "<tbody>";
//                                resultJoin += "<tr>";
//                                resultJoin += "<td>" + data.Result.JoinPrice.TotalPrice + "元</td>";
//                                resultJoin += "<td>" + data.Result.JoinPrice.PrintPrice + "元</td>";
//                                resultJoin += "<td>" + data.Result.JoinPrice.CutPrice + "元</td>";
//                                resultJoin += "</tr>";
//                                resultJoin += "</tbody>";
//                                $("#tbResultJoin").append(resultJoin);
//                            }
//
//                            if (data.Result.OnlyPrice !== null) {
//                                var item = data.Result.OnlyPrice;
//                                $(".only").show();
//                                resultOnly = "<thead>";
//                                resultOnly += "<tr>";
//                                resultOnly += "<th>专版总费用</th>";
//                                resultOnly += "<th>适合开机尺寸</th>";
//                                resultOnly += "<th>印损</th>";
//                                resultOnly += "<th>后工损</th>";
//                                resultOnly += "<th>用纸数量</th>";
//                                resultOnly += "<th>印工费</th>";
//                                resultOnly += "<th>用纸费</th>";
//                                resultOnly += "<th>覆膜费</th>";
//                                resultOnly += "<th>模切费</th>";
//                                resultOnly += "</tr>";
//                                resultOnly += "</thead>";
//                                resultOnly += "<tbody>";
//                                resultOnly += "<tr>";
//                                resultOnly += "<td>" + item.TotalPrice + "元</td>";
//                                resultOnly += "<td>" + item.CutPaperNorm + "</td>";
//                                resultOnly += "<td>" + item.PrintLoss + "张</td>";
//                                resultOnly += "<td>" + item.CraftLoss + "张</td>";
//                                resultOnly += "<td>" + item.PaperNum + "张</td>";
//                                resultOnly += "<td>" + item.PrintPrice + "元</td>";
//                                resultOnly += "<td>" + item.PaperPrice + "元</td>";
//                                resultOnly += "<td>" + item.MembrancePrice + "元</td>";
//                                resultOnly += "<td>" + item.CutPrice + "元</td>";
//                                resultOnly += "</tr>";
//                                resultOnly += "</tbody>";
//                                $("#tbResultOnly").append(resultOnly);
//                            }
//                        } else if (true) {
//                            $(".fixed").hide();
//                            $(".join").hide();
//                            $(".only").hide();
//                            $("#rowResult").hide();
//                            $("#btnResult").hide();
//                            resultLowest = "<thead>";
//                            resultLowest += "<tr>";
//                            resultLowest += "<th>最低价格</th>";
//                            resultLowest += "</tr>";
//                            resultLowest += "</thead>";
//                            resultLowest += "<tbody>";
//                            resultLowest += "<tr>";
//                            resultLowest += "<td>" + data.Result.LowestPrice + "元</td>";
//                            resultLowest += "</tr>";
//                            resultLowest += "</tbody>";
//                            $("#tbResultLowest").append(resultLowest);
//                        }
//                    } else {
//                        var resultNone = "<thead>";
//                        resultNone += "<tr>";
//                        resultNone += "<th>" + data.Msg + "</th>";
//                        resultNone += "</tr>";
//                        resultNone += "</thead>";
//                        $("#tbResultLowest").append(resultNone);
//                    }
//                }
            success: function (res) {
                console.log("res = " + res)
                var data = res.data;
                $("#txtResult").val(data.data);
                if (data) {
//                        if (data.Success) {
                    $("#tbResult").append("<tr totalPrice=" +
                            data.data +
                            "><td>" +
                            data.data +
                            "</td></tr>");

                    // if(data.cost){
                    //     $("#tbResult").append("<tr totalPrice=" +
                    //         data.cost +
                    //         "><td>" +
                    //         data.cost +
                    //         "</td></tr>");
                    // }
                    $("#btnResult").show();
                    $("#rowResult").show();
//                        } else {
//                            $("#tbResult").append("<tr><td>" + data.Msg + "</td></tr>");
//                        }
                }
            }
        });
    }

    function clearForm() {
        location.reload();
    }
</script>

</body>
</html>
